<?php

namespace app\api\controller;

use app\common\controller\ApiController;
use app\common\lib\Show;

class Impress extends ApiController
{
    public function getInfo(): \think\response\Json
    {
        if(!$this->request->isGet()){
            return Show::error([],'请求方式错误');
        }
        try {
            $list=\app\api\service\Impress::getInfo($this->tid);
        }catch (\Exception $e){
            return Show::error([],$e->getMessage());
        }
        return Show::success($list);
    }
}